/** 
 * 学习目标:函数式组件-React中的props传值

 * */
import React from "react";

export default class App extends React.Component {
    render() {
        return <div>
            <Child msg="123" title="helle"></Child>
        </div>
    }
}

export class Child extends React.Component {
    render() {
        // 推荐结构props
        const { title } = this.props
        return (
            <div>
                <h1>希望接收到title：{title}</h1>
            </div>
        )
    }
}

